package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.CardVoucherPackage;
import com.ecoolex.discount.sales.entity.CardVoucherPackageExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface CardVoucherPackageMapper {
    long countByExample(CardVoucherPackageExample example);

    int deleteByExample(CardVoucherPackageExample example);

    int deleteByPrimaryKey(Integer cardVoucherId);

    int insert(CardVoucherPackage record);

    int insertSelective(@Param("record") CardVoucherPackage record, @Param("selective") CardVoucherPackage.Column ... selective);

    CardVoucherPackage selectOneByExample(CardVoucherPackageExample example);

    List<CardVoucherPackage> selectByExample(CardVoucherPackageExample example);

    CardVoucherPackage selectByPrimaryKey(Integer cardVoucherId);

    CardVoucherPackage selectByPrimaryKeyWithLogicalDelete(@Param("cardVoucherId") Integer cardVoucherId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") CardVoucherPackage record, @Param("example") CardVoucherPackageExample example, @Param("selective") CardVoucherPackage.Column ... selective);

    int updateByExample(@Param("record") CardVoucherPackage record, @Param("example") CardVoucherPackageExample example);

    int updateByPrimaryKeySelective(@Param("record") CardVoucherPackage record, @Param("selective") CardVoucherPackage.Column ... selective);

    int updateByPrimaryKey(CardVoucherPackage record);

    int batchInsert(@Param("list") List<CardVoucherPackage> list);

    int batchInsertSelective(@Param("list") List<CardVoucherPackage> list, @Param("selective") CardVoucherPackage.Column ... selective);

    int logicalDeleteByExample(@Param("example") CardVoucherPackageExample example);

    int logicalDeleteByPrimaryKey(Integer cardVoucherId);
}